﻿using System;
using System.Collections.Generic;
using System.Text;
using Nissen_Dao;
using Nissen_Model;

namespace Nissen_Marking.Forms
{
	public class PartrailQuestionService
	{
		public IList<MarkableQuestion> GetMarkableQuestions(string subjectCourseTestId, string pageNum)
		{
			MarkableQuestionDao markableQuestionDao = new MarkableQuestionDao();

			return markableQuestionDao.GetMarkableQuestions(subjectCourseTestId,pageNum);
		}

		public void SubmitMarkableQuestions(IList<RecordData> recordDatas)
		{
			RecordDataDao recordDataDao = new RecordDataDao();

			recordDataDao.SaveOrUpdateRecordDatas(recordDatas);
		}
	}
}
